package com.pro.service.imple;

import com.pro.mapper.JsUserOrderPendingMapper;
import com.pro.pojo.JsUserOrder;
import com.pro.pojo.JsonData;
import com.pro.service.JsUserOrderPendingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName:JsUserOrderPendingServiceImple
 * Package:com.pro.service.imple
 * Description:
 *
 * @Date:2021/11/9 下午 2:15
 * @Author: WYH
 */
@Service
public class JsUserOrderPendingServiceImple implements JsUserOrderPendingService {

    @Autowired(required = false)
    private JsUserOrderPendingMapper jsUserOrderPendingMapper;

    @Override
    public List<JsUserOrder> getAllorder(String orderPaymentChannel, String orderSource) {
        List<JsUserOrder> allorder = jsUserOrderPendingMapper.getAllorder(orderPaymentChannel,orderSource);
        return allorder;
    }

    @Override
    public int count(String orderPaymentChannel, String orderSource) {
        return jsUserOrderPendingMapper.count(orderPaymentChannel,orderSource);
    }

    @Override
    public Boolean delOrder(Integer orderId) {
        Boolean aBoolean = jsUserOrderPendingMapper.delOrder(orderId);
        return aBoolean;
    }
}
